home *** CD-ROM | disk | FTP | other *** search
/ Carousel Volume 2 #1 / carousel.iso / mactosh / hc / turbopgl.sit / READ ME FIRST!!! < prev    next >
Encoding:
Text File  |  1988-03-05  |  1.7 KB  |  37 lines  |  [TEXT/TPAS]

  1.                                WRITING XCMD'S AND XFCN'S IN TURBO
  2.  
  3. This  archive includes:
  4.     READ ME FIRST!!!:  Instructions on using Turbo Pascal to make XCMD's
  5.     DHDR's:   File containing the PasXCMD and PasXFCN DHDR's
  6.     ResEdit walkthru:  How to use ResEdit to move resources.
  7.     HyperXCMD.p:      Source code for HyperXCMD unit
  8.     XCMDGlue.inc:     Glue routines between Pascal and Hypercard.
  9.     Filename.p,Flash.p,GetCreator.p,Peek.p,Mildate.p:
  10.             Source code for sample XCMD's and XFCN's
  11.     Tpascal xcmd template,Tpascal xfcn template:  Templates for making
  12.         XCMD's and XFCN's in Turbo.
  13.  
  14.                      How to Use Turbo Pascal to Make XCMD's
  15.  
  16. 1)  Turbo Pascal uses resources called DHDR's to tell it how to compile
  17. various types of programs that aren't applications.  A common example
  18. is Desk Accessories.  In order to use a DHDR, it must first have been 
  19. moved into the Turbo application.  If you know how to use ResEdit, copy
  20. the DHDR's called PasXFCN and PasXCMD from the file DHDR's to the Turbo 
  21. application.  Make sure that there are no DHDR's with duplicate ID's already 
  22. in Turbo, or you'll overwrite them.  If you don't know how to use ResEdit,
  23. see the file ResEdit walkthru.
  24.  
  25. 2)  Compile the file HyperXCMD.p.  This will compile to a unit called
  26. HyperXCMD.  Use UnitMover to move HyperXCMD into the Turbo file.
  27.  
  28. 3)  See the file XCMD.How to Use for instruction on the format of XCMD's.
  29. Also see the examples and templates included in this archive.
  30.  
  31. 4)  ONCE THE XCMD OR XFCN HAS BEEN COMPILED, YOU MUST CHANGE THE
  32. RESOURCE ID.  XCMD'S ALWAYS FORM RESOURCE ID 300, AND THUS WILL 
  33. OVERWRITE EACH OTHER UNLESS THE ID IS CHANGED.  
  34.  
  35. 5)  Copy the XCMD to the appropriate stack, or to Hypercard.
  36.  
  37.